import { defineComponent } from 'vue'
import { RouterView } from 'vue-router'
import Nav from '@/layouts/nav'

/**
 * 左、上、内容布局
 */
export default defineComponent({
  name: 'mainComponent',
  setup() {
    return () => (
      <>
        <a-layout class="h-100%">
          <a-layout-sider>
            <Nav />
          </a-layout-sider>
          <a-layout>
            <a-layout-header>Header</a-layout-header>
            <a-layout-content>
              <RouterView />
            </a-layout-content>
          </a-layout>
        </a-layout>
      </>
    )
  },
})
